package com.jrapider.manager.controller.dept;

import com.jrapider.manager.data.om.SysDept;
import com.jrapider.manager.service.dept.SysDeptService;
import io.swagger.annotations.Api;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import com.jrapider.controller.BaseCrudController;


@Controller
@RequestMapping("/dept")
@Api(tags = {"部门"})
public class SysDeptController extends BaseCrudController<SysDeptService, SysDept> {
    @Override
    public void buildCondition(QueryWrapper<SysDept> qw, SysDept condition, String filter) {
        if (!StringUtils.isEmpty(filter)) {
            qw.like("code", filter)
                    .like("title", filter);
        }

    }
}
